<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.koylu.org" prefix="koylu"%>

<html>
  <head>
   <title>test</title>
  </head>    
  <body>
     <f:view>
		<h:form>
			<h:panelGrid columns="3">

				<h:outputLabel value="email"/>
				<h:inputText id="email" value="#{testBean.email}"/>
				<h:message for="email"/>

				<h:outputLabel value="name"/>
				<h:inputText id="name" value="#{testBean.name}"/>
				<h:message for="name"/>

				<h:outputLabel value="age"/>
				<koylu:jsfInputText id="age" value="#{testBean.age}">
					<koylu:jsfValidator name="isNull" rel="age2" message="Deger Null Olamaz..."/>
				</koylu:jsfInputText>				
				<h:message for="age"/>

				<h:outputLabel value="age2"/>
				<koylu:jsfInputText id="age2" value="#{testBean.age2}">
					<koylu:jsfValidator name="biggerThan" rel="age"/>
				</koylu:jsfInputText>
				<h:message for="age2"/>

				<h:outputLabel value="date"/>
				<h:inputText id="date" value="#{testBean.date}"/>
				<h:message for="date"/>

				<h:commandButton value="Save" action="#{testBean.save}"/>
				<h:outputLabel value=" "/>
				<h:outputLabel value=" "/>

			</h:panelGrid>		
		</h:form>
     </f:view>
 </body>	
</html> 